{extend name="base" /}
{block name="css"}
<link rel="stylesheet" href="https://paidou.cdn.dgyunju.cn/css/news_detail.css?v={$version|default=100}">
<link rel="stylesheet" href="https://paidou.cdn.dgyunju.cn/fonts/iconfont.css?v={$version|default=100}">
{/block}
{block name="content"}
<div id="container">
    <div id="header"></div>
    <div id="rightside"></div>
    <div id="content">
        {if $news}
        <div class="news_top">
            <h1>{$news['title']}</h1>
            <p>{$news['public_time']}</p>
        </div>
        <div class="news-content">
            {$news['content']|raw|htmlspecialchars_decode|default=''}
        </div>
        {else}

        <div class="no-data">
            <img class="no-img" src="https://paidou.cdn.dgyunju.cn/image/nodata.png" alt="">
            <p>{:lang('no_data')}~</p>
        </div>
        {/if}
    </div>
    <div id="footer"></div>
</div>
{/block}
{block name="script"}
<script src="https://paidou.cdn.dgyunju.cn/js/common.js?v={$version|default=100}"></script>

<script>
    $(".news-content img").click(function(){
        let url = $(this).attr('src');
        window.open(url);
    })
</script>
{/block}